// 数据单位转化工具
export function numConvert(num) {
    const k = 10000;
    if (num < k) {
        return num;
    }
    const sizes = ["", "万", "亿", "万亿"];
    const i = Math.floor(Math.log(num) / Math.log(k));
    return (num / Math.pow(k, i)).toFixed(2) + " " + sizes[i];
}